Skip to content

Add tests for shared components (FollowButton, PolicyActions, LabeledIcon, MessageBanner, TitledSectionCard, PaginatedItemsCard) - #2226

Open
olitreadwell wants to merge 1 commit into
codeforboston:mainfrom
olitreadwell:test/shared-components-coverage
Open

Add tests for shared components (FollowButton, PolicyActions, LabeledIcon, MessageBanner, TitledSectionCard, PaginatedItemsCard)#2226
olitreadwell wants to merge 1 commit into
codeforboston:mainfrom
olitreadwell:test/shared-components-coverage

Conversation

@olitreadwell

Copy link
Copy Markdown

Summary

Adds unit tests for the shared components that back the testimony, bill, and committee pages: FollowButton, PolicyActions, LabeledIcon, MessageBanner, TitledSectionCard, and PaginatedItemsCard. The tests lock in the logged-out Follow redirect, the follow/unfollow confirmation modals, and presentational rendering for the shared components.

Checklist

  • On the frontend, I've made my strings translate-able.
  • If I've added shared components, I've added a storybook story.
  • I've made pages responsive and look good on mobile.
  • If I've added new Firestore queries, I've added any new required indexes to firestore.indexes.json (Please do not only create indexes through the Firebase Web UI, even though the error messages may reccommend it - indexes created this way may be obliterated by subsequent deploys)

Screenshots

N/A. Test-only change.

Known issues

N/A

Steps to test/reproduce

  1. git fetch https://github.com/olitreadwell/maple.git test/shared-components-coverage
  2. git checkout FETCH_HEAD
  3. yarn install --frozen-lockfile
  4. yarn jest components/shared/ components/testimony/TestimonyDetailPage/PolicyActions.test.tsx --runInBand

AI assistance

Drafted with AI assistance. The gap was found and verified against the current code, the change was verified before opening, and this diff was reviewed line by line.

@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
maple-dev Ready Ready Preview Sep 9, 2026 1:04am UTC
1 Skipped Deployment
Project Deployment Actions Updated
maple-prod Ignored Ignored Sep 9, 2026 1:04am UTC

Request Review

…Icon, MessageBanner, TitledSectionCard, PaginatedItemsCard)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant